<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Language" content="zh-CN"><link href="stylesheet.css" media="all" rel="stylesheet" type="text/css">
<title>pg_auth_members</title>
<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?d286c55b63a3c54a1e43d10d4c203e75"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>
</head><body class="SECT1">
<div>
<table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><th colspan="5" align="center" valign="bottom">PostgreSQL 8.2.3 中文文档</th></tr>
<tr><td width="10%" align="left" valign="top"><a href="catalog-pg-authid.html" accesskey="P">后退</a></td><td width="10%" align="left" valign="top"><a href="catalogs.html">快退</a></td><td width="60%" align="center" valign="bottom">章43. 系统表</td><td width="10%" align="right" valign="top"><a href="catalogs.html">快进</a></td><td width="10%" align="right" valign="top"><a href="catalog-pg-autovacuum.html" accesskey="N">前进</a></td></tr>
</table>
<hr align="LEFT" width="100%"></div>
<div class="SECT1"><h1 class="SECT1"><a name="CATALOG-PG-AUTH-MEMBERS">43.9. <tt class="STRUCTNAME">pg_auth_members</tt></a></h1><a name="AEN62530"></a>
<p><tt class="STRUCTNAME">pg_auth_members</tt> 显示角色之间的成员关系。任何非闭环的关系集合都是允许的。</p>
<p>因为用户标识是集群范围的，<tt class="STRUCTNAME">pg_auth_members</tt> 是在一个集群里的所有数据库之间共享的：每个集群里只有一个 <tt class="STRUCTNAME">pg_auth_members</tt> 拷贝，而不是每个数据库一个。</p>
<div class="TABLE"><a name="AEN62537"></a>
<p><b>表43-9. <tt class="STRUCTNAME">pg_auth_members</tt> 字段</b></p>
<table border="1" class="CALSTABLE"><col><col><col><col>
<thead>
<tr><th>名字</th><th>类型</th><th>引用</th><th>描述</th></tr>
</thead>
<tbody>
<tr><td><tt class="STRUCTFIELD">roleid</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-authid.html"><tt class="STRUCTNAME">pg_authid</tt></a>.oid</tt></td><td>拥有有成员的角色的 ID</td></tr>
<tr><td><tt class="STRUCTFIELD">member</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-authid.html"><tt class="STRUCTNAME">pg_authid</tt></a>.oid</tt></td><td>属于 <tt class="STRUCTFIELD">roleid</tt> 角色的一个成员的角色的 ID</td></tr>
<tr><td><tt class="STRUCTFIELD">grantor</tt></td><td><tt class="TYPE">oid</tt></td><td><tt class="LITERAL"><a href="catalog-pg-authid.html"><tt class="STRUCTNAME">pg_authid</tt></a>.oid</tt></td><td>赋予此成员关系的角色的 ID</td></tr>
<tr><td><tt class="STRUCTFIELD">admin_option</tt></td><td><tt class="TYPE">bool</tt></td><td>&nbsp;</td><td>如果 <tt class="STRUCTFIELD">member</tt> 可以把 <tt class="STRUCTFIELD">roleid</tt> 角色的成员关系赋予其它角色，则为真。</td></tr>
</tbody>
</table>
</div>
</div>
<div>
<hr align="LEFT" width="100%">
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="33%" align="left" valign="top"><a href="catalog-pg-authid.html" accesskey="P">后退</a></td><td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">首页</a></td><td width="33%" align="right" valign="top"><a href="catalog-pg-autovacuum.html" accesskey="N">前进</a></td></tr>
<tr><td width="33%" align="left" valign="top"><tt class="STRUCTNAME">pg_authid</tt></td><td width="34%" align="center" valign="top"><a href="catalogs.html" accesskey="U">上一级</a></td><td width="33%" align="right" valign="top"><tt class="STRUCTNAME">pg_autovacuum</tt></td></tr>
</table>
</div>
</body></html>